package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper {
    List<SysMenu> selectAll();

    void insert(SysMenu sysMenu);

    void updateById(SysMenu sysMenu);

    int countByParentId(@Param("id") Long id);

    void deleteById(@Param("id") Long id);

    List<SysMenu> selectListByUserId(@Param("userId") Long userId);

    SysMenu selectById(@Param("parentId") Long parentId);
}
